
package app;

import java.util.Scanner;

/**
 * @author seberm
 */
public class User extends Player {
	// Artibutes: //
	
	
	// Constructors: //
	public User (String name) {
		super(name);
	}

	public User () {
		super();
	}


	// Methods: //
	@Override
	public void start() {
		this.setNull();

		Scanner sc = new Scanner(System.in);

		do {
			// Updates this.actualCard & this.cardsSum
			this.getRandom();
			
			System.out.println("Vytahli jste si kartu s cislem: " + this.actualCard);
			System.out.println("Vas aktualni soucet karet je: " + this.cardsSum);
			System.out.println("Prejete si dalsi kartu? [a/n]: ");

		} while (sc.next().charAt(0) != 'n');
	}

}
